<template>
  <div class='home'>
    <van-button type="primary"
                @click="getSongList">主要按钮</van-button>

    {{$store.state.count}}
  </div>
</template>

<script>
import { getSongList } from '@/api/home'
export default {
  data: () => ({
    songlist: []
  }),
  methods: {
    async getSongList () {
      const res = await getSongList()
      // this.songlist = res.data.message
      console.log(res);
    }
  },
  created () {
    this.getSongList()
  }
}

</script>

<style lang="scss" scoped>
</style>
